package impl;

public class SimpleFactoryTest {
    public static void main(String[] args) {
        Operation oper = OperationFactory.createOperate("*");
        oper.setNumberA(10);
        oper.setNumberB(5);
        double result = oper.getResult();
        System.out.println("结果是：" + result);  // 输出：结果是：50.0
    }
}
